package com.ztman.router.common.dagger.component;

import android.app.Activity;

import com.ztman.router.common.dagger.module.ActivityModule;
import com.ztman.router.common.dagger.scope.ActivityScope;

import dagger.Component;

/**
 * @Title:ActivityComponent
 * @Package:com.ztman.router.common.dagger.component
 * @Description:
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/5/1015:24
 */
@ActivityScope
@Component(dependencies = AppComponent.class, modules = ActivityModule.class)
public interface ActivityComponent {

    Activity getActivity();//获取Activity实例


    /**
     * 功能：为了兼容底层与上层，使用这种多态的方式替代具体的类
     * @param Activity
     */
    void inject(Activity Activity);


    /**
     * 功能：注入MAinActivity所需的依赖
     *
     * @param mainActivity
     */
//    void inject(TopActivity mainActivity);

    /**
     * 功能：注入SplashActivity所需的依赖
     *
     * @param splashActivity
     */
//    void inject(SplashActivity splashActivity);



}
